home *** CD-ROM | disk | FTP | other *** search
- /*
- ADPRO HORIZONTAL MIRROR
- By J.L. White
- ©1994 Merlin's Software
-
- Load 24 Bit Image And Create Horizontal Mirror Image
- Art Department Pro Script
-
- Batch Factory Batch Conversion Scripts are basically Arexx scripts that
- allow you to pass certain parameters to the external program you wish
- to use to convert the images from one format to another. You can pass
- five different strings from Batch Factory to the script by using the
- following commands:
-
- $N = This will pass the current selected filename.
- $P = This will tell Batch Factory to ask for a path to save new frames to.
- $# = This will pass the current frame number in the script.
- $T = This will pass the total number of frames in the script.
- $A = This will pass an offset number to be used to save frames with.
-
- NOTE: The following line is required to work as a Batch Factory Script:
-
- PARSE=$N $P $# $A $T
-
- */
-
- options results
- call Locate_ADPro
- address "ADPro"
-
- arg TheFile OutFile FrameNum AddNum TotalNum
- SaveNum = FrameNum + AddNum
- if FrameNum = 1 then do
- adpro_to_front
- end
-
- lformat "UNIVERSAL"
- load TheFile
- if RC ~= 0 then do
- adpro_to_front
- okay1 "Error Loading" TheFile
- exit
- end
- XSize
- X = adpro_result
- YSize
- Y = adpro_result
- operator "Crop_Image" X/2 Y
- operator "Horizontal_Flip"
- saver "Temp" "XXX" "RAW"
- lformat "UNIVERSAL"
- load TheFile
- loader "Temp" "XXX" X/2 0 100
- operator "KillTemp"
-
- sformat "IFF"
- if OutFile = "SAME" then
- save TheFile "RAW"
- else
- save OutFile""right(SaveNum,3,'0') "RAW"
- exit
-
- Locate_ADPro:
- if (POS('ADPro',SHOW('Ports')) = 0)
- then do
- address command 'run < nil: > nil: adpro:adpro MAXMEM=5000000'
- address command 'wait 4'
- end
- return
-
-